package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityMqttOperationProcess;

import java.util.List;

public interface MqttOperationService extends IService<EntityMqttOperationProcess> {
    boolean save(Long comId, EntityMqttOperationProcess entityMqttOperationProcess);

    EntityMqttOperationProcess selectMqttProcess(Long companyId,EntityMqttOperationProcess process,List<Integer> status);

    EntityMqttOperationProcess selectMqttProcess(Long companyId,EntityMqttOperationProcess process);

    boolean update(Long companyId,EntityMqttOperationProcess process);
    //获取所有超时的订单
    List<EntityMqttOperationProcess> getTimerMqttOrder(Integer orderState);

    List<EntityMqttOperationProcess> getTimerMqttOrder(Long companyId,Integer orderState,Integer sec);

    Integer getMaxOrderId(Long companyId);
}
